package com.lanchetech.dao;

import com.lanchetech.bean.request.OrderPayReq;import com.lanchetech.bean.vo.OrderPayVO;import com.lanchetech.entity.OrderPay;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.Date;import java.util.List;

@Mapper
public interface OrderPayMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderPay record);

    int insertSelective(OrderPay record);

    OrderPay selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderPay record);

    int updateByPrimaryKey(OrderPay record);

    OrderPay findOneByOrderIdAndPayUserId(@Param("orderId") Long orderId, @Param("payUserId") Long payUserId);

    List<OrderPayVO> findAllPage(OrderPayReq req);

    int updateStatusAndUpdatedAtByTradeNo(@Param("updatedStatus")Byte updatedStatus,@Param("updatedUpdatedAt")Date updatedUpdatedAt,@Param("tradeNo")String tradeNo);


}